/*

Author   : chaos

FileName : ret_add.cpp

Date     : 09/08/17 16:18:42

*/
#include <iostream>
using namespace std;

int * fun(void);

int main(int argc ,char *argv[])
{
    int * ptr = fun();

    cout <<"*ptr=" << *ptr << endl;

    delete ptr;// run rom is not efficent

    return 0;
}


int * fun(void){
    int * a = new int (9);

    return a;
}
